package me.healthcare.activity;

import me.healthcare.app.R;
import me.healthcare.common.ActionBarUtils;
import me.healthcare.event.ForgetPasswordActivity_Events;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class ForgetPasswordActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// Set View to register.xml
		setContentView(R.layout.forget_password_screen);

		ActionBarUtils.remade(this,
				getResources().getString(R.string.activity_forget_password));

		// view variables
		Button confirmButton = (Button) findViewById(R.id.btnConfirm);
		TextView loginScreen = (TextView) findViewById(R.id.link_to_login);

		confirmButton.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				ForgetPasswordActivity_Events
						.sendNewPassReq(ForgetPasswordActivity.this);
			}
		});

		loginScreen.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				ForgetPasswordActivity_Events
						.closeActivity(ForgetPasswordActivity.this);
			}
		});

	}
}
